﻿<phone:PhoneApplicationPage 
    x:Class="HomeBuyerTools.Views.HomeRentOrBuy.Result"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="0,0,0,0">
            <Image x:Name="imgTitle" Width="71" Height="71" HorizontalAlignment="Left" MouseEnter="imgTitle_MouseEnter" Style="{StaticResource PovitTitle}"/>
            <TextBlock x:Name="tblkhyphen" Text="-" Margin="0,0,5,0" FontSize="74" Foreground="White"/>
            <TextBlock Text="Result"  TextWrapping="NoWrap" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>
      
        <ScrollViewer  Grid.Row="1">
            <!--ContentPanel - place additional content here-->
            <Grid x:Name="ContentPanel"  Margin="12,0,12,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" Orientation="Horizontal">
                    <TextBlock Name="tbCostOfRenting" Text="Cost of Renting" FontSize="30" />
                </StackPanel>

                <StackPanel Grid.Row="1" Orientation="Vertical">
                    <TextBlock Name="tbAnnualRent" Text="Annual rent" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtAnnualRent"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>
                <StackPanel Grid.Row="2" Orientation="Vertical">
                    <TextBlock Name="tbTotalAnnualCostOfRenting" Text="Total annual cost of renting" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtTotalAnnualCostOfRenting"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>
                <StackPanel Grid.Row="3" Orientation="Horizontal">
                    <TextBlock Name="tbCostOfBuying" Text="Cost of Buying" FontSize="30"/>
                </StackPanel>
                <StackPanel Grid.Row="4" Orientation="Vertical">
                    <TextBlock Name="tbMortgageLoanAmount" Text="Mortgage loan amount" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtMortgageLoanAmount"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>
                <StackPanel Grid.Row="5" Orientation="Vertical">
                    <TextBlock Name="tbMonthlyMortgagePayment" Text="Monthly mortgage payment" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtMonthlyMortgagePayment"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>
                <StackPanel Grid.Row="6" Orientation="Vertical">
                    <TextBlock Name="tbAnnualMortgagePayment" Text="Annual mortgage payment" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtAnnualMortgagePayment"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>
                <StackPanel Grid.Row="7" Orientation="Vertical">
                    <TextBlock Text="Opportunity cost of buying" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txt19"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>
                <StackPanel Grid.Row="8" Orientation="Vertical">
                    <TextBlock Name="tbTotalCostOfBuying" Text="Total cost of buying" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtTotalCostOfBuying"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>
                <StackPanel Grid.Row="9" Orientation="Horizontal">
                    <TextBlock Name="tbLessAdjustments" Text="Less Adjustments:" FontSize="30"/>
                </StackPanel>
                <StackPanel Grid.Row="10" Orientation="Vertical">
                    <TextBlock Name="tbPrincipalReductionInMortgage" Text="Principal reduction in mortgage" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtPrincipalReductionInMortgage"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>

                <StackPanel Grid.Row="11" Orientation="Vertical">
                    <TextBlock Name="tbTaxSavingsOfInterestDeductions" Text="Tax savings of interest deductions" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtTaxSavingsOfInterestDeductions"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>

                <StackPanel Grid.Row="12" Orientation="Vertical">
                    <TextBlock Name="tbTaxSavingsOfPropertyTax" Text="Tax savings of property tax" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtTaxSavingsOfPropertyTax"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>

                <StackPanel Grid.Row="13" Orientation="Vertical">
                    <TextBlock Name="tbTotalAdjustments" Text="Total adjustments" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtTotalAdjustments"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>

                <StackPanel Grid.Row="14" Orientation="Vertical">
                    <TextBlock Name="tbAnnualAfterTaxCostOfHomeOwnership" Text="Annual after-tax cost of home ownership" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtAnnualAfterTaxCostOfHomeOwnership"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>

                <StackPanel Grid.Row="15" Orientation="Horizontal">
                    <TextBlock Text="Less:" FontSize="30"/>
                </StackPanel>
                <StackPanel Grid.Row="16" Orientation="Vertical">
                    <TextBlock Name="tbEstimatedAnnualAppreciationInValueOfhome" Text="EstimatedAnnualAppreciationInValueOfhome" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtEstimatedAnnualAppreciationInValueOfhome"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>

                <StackPanel Grid.Row="17" Orientation="Vertical">
                    <TextBlock Name="tbNetAnnualCostOfHomeOwnership" Text="Net annual cost of home ownership" FontSize="25" Margin="10,0,0,0"/>
                    <TextBox x:Name="txtNetAnnualCostOfHomeOwnership"  InputScope="TelephoneNumber" Width="450"/>

                </StackPanel>

            </Grid>
        </ScrollViewer>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.cancel.rest.png" Text="Back" Click="ApplicationBarIconButton_Click"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->
</phone:PhoneApplicationPage>
